//
//  TestProblem455.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/20.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem455: XCTestCase {

    var problem = Problem455()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem414_Case1() throws {
        XCTAssertEqual(problem.findContentChildren([1, 2, 3], [1, 1]), 1)
    }
    
    func testProblem414_Case2() throws {
        XCTAssertEqual(problem.findContentChildren([1, 2], [1,2,3]), 2)
    }
    
    func testProblem414_Case3() throws {
        XCTAssertEqual(problem.findContentChildren([1, 2, 3], [3]), 1)
    }
    
    func testProblem414_Case4() throws {
        XCTAssertEqual(problem.findContentChildren([1, 2, 3], []), 0)
    }
    
    func testProblem414_Case5() throws {
        XCTAssertEqual(problem.findContentChildren([1, 2, 3], [10]), 1)
    }
    
    func testProblem414_Case6() throws {
        XCTAssertEqual(problem.findContentChildren([2, 3], [1]), 0)
    }
}
